// 初始化WOW
new WOW().init();

// 轮播部分设置
var swiper = new Swiper('.myswiper-container', {
	spaceBetween: 0,
	centeredSlides: true,
	autoplay: {
		delay: 2500,
		disableOnInteraction: false,
	},
	pagination: {
		el: '.myswiper-pagination',
		clickable: true,
	}
});

var swipertwo = new Swiper('.twoswiper-container', {
	slidesPerView: 3,
	spaceBetween: 20,
	pagination: {
		el: '.swiper-pagination',
		clickable: true,
	},
});

var swiper = new Swiper('.manageswiper-container', {
	slidesPerView: 3,
	spaceBetween: 30,
	slidesPerGroup: 3,
	loop: true,
	loopFillGroupWithBlank: true,
	pagination: {
	  el: '.swiper-pagination',
	  clickable: true,
	},
  });

// 初始化右下角工具
layui.use(['util','jquery'],function() {
	var util = layui.util;
	var $ = layui.$;
	util.fixbar({
		bar1: true,
		bgcolor:'#FB794350',
		click: function(type) {
			console.log(type);
			if(type === 'bar1') {
				alert('点击了bar1');
			}
		}
	});
});
